package kr.co.woobi.parion.visualbility;

import android.app.Activity;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends Activity {

	TextView textView;
	Button btn;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		
		
		btn = (Button) findViewById(R.id.changeVisible);
		textView = (TextView)findViewById(R.id.textView2);
		
		String btn_text = getResources().getString(R.string.button_text);
		int color = getResources().getColor(R.color.btn_color);
		String[] array = getResources().getStringArray(R.array.StringArray);
		Drawable drawable = getResources().getDrawable(R.drawable.ic_launcher);
		
		btn.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				if(textView.getVisibility()==View.VISIBLE){
					textView.setVisibility(View.GONE);
				}else{
					textView.setVisibility(View.VISIBLE);
				}
				
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}

}
